from rest_framework.routers import SimpleRouter

from . import views

router = SimpleRouter()
# api/v1/course/category/---->get请求就能获取所有分类
router.register('category', views.CourseCategoryView, 'category')
# api/v1/course/actual/---->get请求就能获取所有课程
router.register('courses', views.CourseView, 'courses')
router.register('teacher', views.TeacherView, 'teacher')
router.register('comment', views.CommentView, 'comment')
router.register('commentadd', views.CommentaddView, 'commentadd')


urlpatterns = [
]

urlpatterns += router.urls
